<template>
	<view>
		<image class="bg-img" src="https://img.js.design/assets/img/631d64660e0d177adba0f7d5.jpg"></image>
		<view class="content">
			<block>
			<view class="box-top">
				<view class="shop-name">名字</view>
				<view style="border: 1rpx solid rgba(0, 0, 0, 0.7); width: 80%;margin-top: 15rpx; margin-left: 10%;"></view>
				<view class="shop-order-code">
					取单号：
				</view>	
				<!-- 进度条 -->
				<view class="shop-progress">
						<uni-steps :options="[{title: '点单成功'}, {title: '制作中'}, {title: '可以取单啦'}]" :active="1"></uni-steps>
				</view>
			</view>
			<view class="box-order">
				<view class="box-order-item">
					<view class="item-right">
						<view class="item-right-top">
							<view class="dish-name">茶泡饭</view>
							<view :class="{'dish-name-status':true,'status-class':true}">现吃</view>
							<view :class="{'dish-name-status':true,'status-class':true}">打包</view>
						</view>
						<view class="item-center">
							<view class="dish-image">
								<image style="width: 100%; height: 100%;" src="https://img.js.design/assets/smartFill/img401164da755928.jpg"></image>
							</view>
							<view class="dish-introduce">
								<view class="dish-introduce1">
									<text>撒大苏打</text>
								</view>
								<view class="dish-introduce2">
									名字2
								</view>
							</view>
						</view>
	
					</view>
					<view class="item-left">
						<view class="item-left-top">
							<view v-if="status===1">已完成</view>
							<view v-if="status===0">进行中</view>
						</view>
						<view class="item-left-bottom">
							<view class="item-left-bottom-m">￥10</view>
							<view class="item-left-bottom-n">
								X{{status}}件
							</view>
						</view>
					</view>
				</view>
			</view>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status:1
			};
		}
	}
</script>

<style lang="scss">
	.bg-img {
		position: fixed;
		width: 100%;
	    height: 102%;
		top: 0;
		left: 0;
		z-index: -1;
		//opacity: 0.4; 透明度
	}
	.box-top{
		background: rgba(255, 255, 255, 0.8);
		box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
		width: 90%;
		margin-left: 5%;
		height: 400rpx;
		
		.shop-name{
			padding-top: 15px;
			font-size: 18px;
			font-weight: 400;
			color: rgba(0, 0, 0, 1);
			text-align: center;
		}
		.shop-order-code{
			font-size: 25px;
			font-weight: 400;
			margin-top: 15rpx;
			color: rgba(0, 0, 0, 1);
			text-align: center;
		}
		.shop-progress{
			margin-top: 40rpx;
		}
	}
	.box-order{
		.box-order-item{
			margin-top: 5%;
			width: 90%;
			height: 250rpx;
			margin-left: 5%;           
			box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			grid-template-rows:1fr;
			grid-column-gap: 0px;
			grid-row-gap: 0px;
			.item-right{
				grid-area: 1 / 1 / 2 / 3; 
				 background: linear-gradient(135deg, transparent 0px, rgba(255, 255, 255, 0.7) 0) top left,
				                linear-gradient(-135deg, transparent 5px, rgba(255, 255, 255, 0.7) 0) top right,
				                linear-gradient(-45deg, transparent 5px, rgba(255, 255, 255, 0.7) 0) bottom right,
				                linear-gradient(45deg, transparent 0px, rgba(255, 255, 255, 0.7) 0) bottom left;
				    background-size: 50% 50%;
				    background-repeat: no-repeat;
			}
			.item-left{
				grid-area: 1 / 3 / 2 / 4;
				background: linear-gradient(135deg, transparent 5px, rgba(255, 255, 255, 0.7) 0) top left,
				            linear-gradient(-135deg, transparent 0px, rgba(255, 255, 255, 0.7) 0) top right,
				            linear-gradient(-45deg, transparent 0px, rgba(255, 255, 255, 0.7) 0) bottom right,
				            linear-gradient(45deg, transparent 5px, rgba(255, 255, 255, 0.7) 0) bottom left;
				background-size: 50% 50%;
			    background-repeat: no-repeat;
				.item-left-top{
					font-size: 15px;
					font-weight: 400;
					color: rgba(0, 0, 0, 1);
					margin-top: 10%;
					margin-left: 40%;
					border:1px solid black;
					width: 50%;
					text-align: center;
				}
				
				
			}
			
		}
	}
	.item-left-bottom{
		margin-top: 30%;
		margin-left: 35%;
		.item-left-bottom-m{
			font-size: 20px;
			font-weight: 400;
			color: rgba(0, 0, 0, 1);
		}
		.item-left-bottom-n{
			margin-top: 8%;
			font-size: 14px;
			font-weight: 400;
			color: rgba(0, 0, 0, 1);
		}
		
	}
	.item-right-top{
		display: flex;
		flex-direction: row;
	.dish-name{
		margin-top: 3%;
		margin-left: 3%;
		font-size: 15px;
		font-weight: 700;
		color: rgba(0, 0, 0, 1);
	}
	.dish-name-status{
		margin-top: 4%;
		margin-left: 2.5%;
		width: 11%;
		height: 15px;
		font-size: 10px;
		font-weight: 400;
		text-align: center;
		border:1px solid black;
	}
}
.status-class{
	background:#FFEA51;
}
.item-center{
	display: flex;
	flex-direction: row;
.dish-image{
	margin-top: 3%;
	margin-left: 3%;
	width: 40%;
	height: 80px;
}
.dish-introduce{
	margin-top: 5%;
	margin-left: 8%;
	display: flex;
	flex-direction: column;
	.dish-introduce1{
	margin-top: 5%;
	margin-left: 8%;
	width: 100%;
	font-size: 14px;
	font-weight: 400;
	color: rgba(0, 0, 0, 1);
	}
	.dish-introduce2{
		margin-top: 5%;
		margin-left: 8%;
		font-size: 12px;
		font-weight: 400;
		color: rgba(128, 128, 128, 1);
	}
}
}
</style>
